<?php

require_once "core/application/models/msettings/msettings2.php";

class Msettings3 extends Msettings2 {

    private $_query;

    protected function saveSettings($value, $id) {
        /**
         *  Сохраняет настройки
         * @param string $value
         * @param int $id
         */
        DB::getInstance()->openConnectionToGS();
        $this->_query = "UPDATE `personal_settings` SET `value_setting` = '$value' WHERE `id` = '$id'";
        return DB::getInstance()->sql($this->_query);
        DB::getInstance()->closeConnection();
        unset($this->_query);
    }

}

?>
